<?php
	$javascript->link('common', false);
	$javascript->link('jquery', false);
	$javascript->link('jquery-ui', false);
 	$javascript->link('menu', true);
 	$javascript->link('question-logic', false);
 	$javascript->link('jquery.scrollTo', false);
	/*print $html->css('jquery-ui');*/
?>
<div id="header"> 
	<div id="logo"> 
		<a href="/"><img src="<?php echo Configure::read('Settings.small_logo_path');?>" alt="logo" /></a>
	</div>
	<div id="login">
		<p>You are logged in as <?php echo $session->read('Auth.User.firstname').' '.$session->read('Auth.User.lastname'); ?>, <?php echo $html->link('Logout '.$session->read('Auth.User.username'), array('controller' => 'users', 'action' => 'logout'));?></p>
	</div>
	<div id="menu"><ul>
		<li class="menuItem"><?php echo $html->link('Assessments', array('controller' => 'assessments', 'action' => 'index')); ?></li>
		<li class="menuItem"><?php
			$cheat = Configure::read('Settings.allow_cheat_sheet');
			if ($cheat == true){
				echo $html->link('Cheat Sheet', array('controller' => 'assessments', 'action' => 'cheat_sheet')); 
			}
		?></li>
		<li class="menuItem"><?php echo $html->link('Courses', array('controller' => 'courses', 'action' => 'search')); ?></li>
		<li class="menuItem"><?php echo $html->link('Results', array('controller' => 'asessions', 'action' => 'display')); ?></li>
		<li class="menuItem"><?php echo $html->link('Users', array('controller' => 'users', 'action' => 'search')); ?></li>
		<li class="menuItem"><a href="mailto:<?php echo Configure::read('Settings.support_email');?>">Support</a></li>
	</ul></div>
</div>
<div id="user">

</div>